package com.itheima.controller;

import com.itheima.service.UserService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
//@RequestMapping("/user")
public class UserConrtoller {
    //注入Service
    @Reference//远程注入
    private UserService userService;
    @RequestMapping("/sayhello")
    public String sayHello(){
        return  userService.sayHello();

    }
}
